package testpackage.common.utils;

import java.text.ParseException;
import java.util.Date;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import com.common.utils.DateUtils;
import com.common.utils.StringOut;

public class TDateUtils {
	DateUtils dateutils; 
	@Before
	public void before(){
		dateutils = new DateUtils();
	}
	
	@Test
	public void TgetLastStrDateOfMonth(){
		StringOut.Out(dateutils.getLastDateOfMonth(2020, 5));
		StringOut.Out(dateutils.getLastStrDateOfMonth(2020, 5));
	}
	
	@Test
	public void TgetSeconds() throws ParseException{
		StringOut.Out(dateutils.getSeconds(new Date()));
		StringOut.Out("------------------------------");
	}
	
	@After
	public void end(){
		dateutils = null;
	}
}
